package com.sunny.ynhz.utils;

import android.content.Context;
import android.view.WindowManager;

/**
 * Created by huhuan123 on 2018/5/19.
 */

public class ScreenUtils {
    public static float getScreenWith(Context context) {
        WindowManager wm = (WindowManager) context
                .getSystemService(Context.WINDOW_SERVICE);
        int width = wm.getDefaultDisplay().getWidth();
        return width;
    }
}
